package xhw.test;

import lombok.extern.slf4j.Slf4j;

/**
 * xxxxxxxxxxxxxxxxx * @Date 2023/11/21 17:06
 *
 * @Author huangdw
 */
@Slf4j
public class FooMain {
    public static void main(String[] args) {
        Foo foo = new Foo();
        Runnable printFirst = new Runnable() {
            @Override
            public void run() {
                log.info("实现运行first");
            }
        };

        Runnable printSecond = new Runnable() {
            @Override
            public void run() {
                log.info("实现运行second");
            }
        };

        Runnable printThird = new Runnable() {
            @Override
            public void run() {
                log.info("实现运行third");
            }
        };

        Thread thread1 = new Thread(printFirst);
        Thread thread2 = new Thread(printSecond);
        Thread thread3 = new Thread(printThird);

        thread1.start();
        thread2.start();
        thread3.start();
    }
}
